//
//  PBTabBarViewController.mm
//  PlatinumButler
//
//  Created by 高小松 on 14-3-10.
//  Copyright (c) 2014年 gxsoft. All rights reserved.
//

#import "PBTabBarViewController.h"
#import "PBTabPageViewController.h"
#import "PBUIConfig.h"

@implementation PBTabBarViewController

#pragma mark - Memory Management

- (id)init
{
    self = [super init];
    if (self) {
    }
    return self;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

#pragma mark - View Management

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.delegate = self;
    // iOS 7.0以上需要设置barTintColor，iOS 5.0到iOS 6.1设置tintColor
    UIColor * backgroundColor = [[PBUIConfig instance] tabBarBackgroundColor];
    if ([self.tabBar respondsToSelector:@selector(setBarTintColor:)]) {
        self.tabBar.barTintColor = backgroundColor;
    } else {
        self.tabBar.tintColor = backgroundColor;
    }
}

#pragma mark - UITabBarControllerDelegate

@end
